const Router =require("koa-router")

const {login,sucess}=require("../controller/auto_controller")
const {auto,verifyAuth}=require("../middleware/automiddleware")
const {getavatar}=require("../controller/file.controller")
const autorouter=new Router()
//登录
autorouter.post("/login",auto,login)
 
autorouter.post("/test",verifyAuth,sucess)
//查看文件
autorouter.get("/user/:userid/avatar",getavatar)
module.exports=autorouter;